package com.ruoyi.web.controller.resProduct;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.resProduct.domain.ResProduct;
import com.ruoyi.resProduct.service.ResProductService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "特产管理")
@Anonymous
public class resProductController {

    @Autowired
    ResProductService service;

    @ApiOperation(value = "获取特产列表")
    @PostMapping ("/GetProductList")
    public AjaxResult GetProductList(@RequestBody ResProduct p ) {

        return AjaxResult.success(service.getProductList(p));
    }
}
